
#include "bird.h"

Bird::Bird(QWidget *parent)
    : QWidget{parent}
{
    //加载鸟图片资源
    for(int i=0;i<this->max;i++)
    {
        QString str=QString(":/Image/bird%1").arg(i+1);
        this->m_Bird_Pix.load(str);
    }

    //统一一下合适尺寸
    this->setFixedSize(this->m_Bird_Pix.width(),this->m_Bird_Pix.height());

}

